package ink.onei.production.mapper;

import ink.onei.production.entity.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: nekotako
 * @Description: TODO
 * @Date: 26/12/2023 20:56 Tuesday
 */

public interface IGoodsMapper {

    Integer insert(Goods goods);

    Integer insertBatch(List<Goods> goodsList);

    Integer update(Goods goods);

    Integer delete(Goods goods);
    
    Integer deleteBatch(List<Goods> goodsList);

    Goods getGoods(Goods goods);

    List<Goods> getGoodsList(@Param("id") Integer id,
                             @Param("name") String name,
                             @Param("type") String type,
                             @Param("status") String status);
}
